import { httpDelete, httpGet, httpPost, httpPut } from "@/utils/http";


export function getStaffsApi(data?: object) {
    return httpPost('/staffs/search', data);
}
export function deleteStaffsDataApi(data: object) {
    return httpDelete('/staffs/remove', data);
}
export function addStaffsDataApi(data: object) {
    return httpPost('/staffs/add', data);
}
export function updateStaffsDataApi(data: object) {
    return httpPut('/staffs/update', data);
}
//获取工号
export function getNewestWorkNumberDataApi() {
    return httpGet('/workNumber/newest');
}

